package com.dycong.common.IO.calculator.aio;
import com.dycong.common.IO.calculator.aio.client.Client;
import com.dycong.common.IO.calculator.aio.server.Server;

import java.util.Scanner;

/**
 * ���Է���
 * @author yangtao__anxpp.com
 * @version 1.0
 */
public class Test {
	//����������
	@SuppressWarnings("resource")
	public static void main(String[] args) throws Exception{

		Server.start();

		Thread.sleep(100);

		Client.start();
		Client.start();
		Client.start();
		System.out.println("请输入请求消息：");
		Scanner scanner = new Scanner(System.in);
		while(Client.sendMsg(scanner.nextLine()));
	}
}